.text-to-image-container {
  margin: 0 auto;
  padding: 40px 20px;
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.btn-animate {
  position: relative;
  width: 130px;
  height: 40px;
  line-height: 40px;
  border: none;
  border-radius: 5px;
  background: #027efb;
  color: #fff;
  text-align: center;
}

.btn-animate__surround {
  &::before, &::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    background: #027efb;
    transition: all 0.3s ease;
  }
  &::before { height: 0%; width: 2px;}
  &::after { width: 0%; height: 2px; }

  &:hover {
    background: transparent;
    &::before { height: 100%; }
    &::after { width: 100%; }
  }

  & > span {
    display: block;

    &:hover { color: #027efb;
      &::before { height: 100%; }
      &::after { width: 100%; }
    }

    &::before, &::after { content: ''; position: absolute; left: 0; bottom: 0; background: #027efb; transition: all 0.3s ease;}
    &:before { width: 2px; height: 0%; }
    &:after { width: 0%; height: 2px; }
  }
}

.header {
  text-align: center;
  margin-bottom: 40px;
}

.header h1 {
  font-size: 36px;
  color: #fff;
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.header p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.main-content {
  background: rgba(255, 255, 255, 0.95);
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.split-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.left-panel, .right-panel {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f0f0f0;
}

.panel-header h2 {
  margin: 0;
  font-size: 20px;
  color: #303133;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-section {
  margin-bottom: 30px;
}

.action-btn {
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(64, 158, 255, 0.3);
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(64, 158, 255, 0.4);
}

.full-width {
  width: 100%;
}

.image-results {
  margin-top: 30px;
}

.image-results h3 {
  margin-bottom: 15px;
  color: #303133;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.image-item {
  border: 1px solid #e4e7ed;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.image-item:hover {
  transform: scale(1.02);
}

.image-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.image-actions {
  padding: 10px;
  text-align: center;
}

.translation-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.translation-result {
  margin-top: 30px;
}

.translation-result h3 {
  margin-bottom: 15px;
  color: #303133;
}

.result-box {
  background: #f5f7fa;
  border-radius: 8px;
  padding: 20px;
  border-left: 4px solid #409eff;
}

.result-box p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: #303133;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .split-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .translation-actions {
    flex-direction: column;
  }
  
  .image-grid {
    grid-template-columns: 1fr;
  }
}
